'use strict';
exports.main = async (event, context) => {
    //event为客户端上传的参数
    console.log('event : ', event)

    const {
        realName,
        idCard,
        mobile,
    } = event

    const uniVerifyManager = uniCloud.getUniVerifyManager({
        provider: "univerify"
    });
    let verifyRes = await uniVerifyManager.mobile3EleVerify({
        realName: realName,
        idCard: idCard,
        mobile: mobile,
    });
    console.log('认证结果: ', verifyRes.data);

    //返回数据给客户端
    return verifyRes.data
};